(function (global, angular) {
    "use strict";

    angular.module("cloapCertificateApp.service", ["ngResource"]);
    angular.module("cloapCertificateApp.filter", []);
    angular.module("cloapCertificateApp.directive", []);
    angular.module("cloapCertificateApp.controller", []);
    angular.module("cloapCertificateApp.translate", ["pascalprecht.translate"]);

    var cloap_certificate = angular.module("cloapCertificateApp", ["ui.router",
                                           "ui.bootstrap",
                                           "cloapCertificateApp.service",
                                           "cloapCertificateApp.filter",
                                           "cloapCertificateApp.directive",
                                           "cloapCertificateApp.controller",
                                           "cloapCertificateApp.translate"]);

    cloap_certificate.config(function($httpProvider) {
        $httpProvider.defaults.useXDomain = true;
        delete $httpProvider.defaults.headers.common['X-Requested-With'];
    });
}(window, angular));
